Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit d2bc7fc32e41a3d428175327458fa77a0814009e


Parents : ca18d06
Author : Mark Qvist <mark@unsigned.io>
Date : 2021-10-08T17:59:33+02:00

Cleanup

Changes

1 files changed, 0 insertions(+), 9 deletions(-)


Diff

diff --git a/LXMF/LXMF.py b/LXMF/LXMF.py
index b23189e..c7d852d 100644
--- a/LXMF/LXMF.py
+++ b/LXMF/LXMF.py
@@ -646,8 +646,6 @@ class LXMPeer:
self.link = RNS.Link(self.destination, established_callback = self.link_established, closed_callback = self.link_closed)
self.state = LXMPeer.LINK_ESTABLISHING
- # TODO: Remove
- RNS.log("Establishment timeout is "+str(self.link.establishment_timeout))
else:
if self.state == LXMPeer.LINK_READY:
RNS.log("Sync link to peer "+RNS.prettyhexrep(self.destination_hash)+" established, preparing request...", RNS.LOG_DEBUG)
@@ -773,9 +771,6 @@ class LXMPeer:
self.sync()
def link_closed(self, link):
- # TODO: Remove
- RNS.log("The sync link to peer "+RNS.prettyhexrep(self.destination_hash)+" was closed: "+str(link.teardown_reason), RNS.LOG_DEBUG)
-
self.link = None
self.state = LXMPeer.IDLE
@@ -784,10 +779,6 @@ class LXMPeer:
# TODO: Remove at some point
RNS.log("The message "+RNS.prettyhexrep(transient_id)+" was added to distribution queue for "+RNS.prettyhexrep(self.destination_hash), RNS.LOG_EXTREME)
self.unhandled_messages[transient_id] = self.router.propagation_entries[transient_id]
- else:
- # TODO: Remove at some point
- RNS.log("The message "+RNS.prettyhexrep(transient_id)+" was NOT added to distribution queue for "+RNS.prettyhexrep(self.destination_hash), RNS.LOG_EXTREME)
-
class LXMRouter:
MAX_DELIVERY_ATTEMPTS = 3


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────